package com.app.couponsharelife.ui.main.nativelife

import com.app.couponsharelife.R
import com.app.couponsharelife.base.BaseActivity
import com.app.couponsharelife.ui.main.nativelife.fragment.NativeLifeFragment
import com.app.couponsharelife.utils.AppUtils

/**
 *Created by xct on 2019/1/15
 *Description:
 */
class NativeLifeActivity:BaseActivity(){
    override val viewLayoutId: Int
        get() = R.layout.activity_nativelife//fragment_nativelife//

    override fun initViews() {
        AppUtils.initImmersionBar(this,false)
        val fragmentManager = supportFragmentManager
        val fragmentTransaction = fragmentManager.beginTransaction()
        val fragment= NativeLifeFragment.newInstance()
        fragmentTransaction.replace(R.id.nativelife_rootlayout,fragment).commit()
    }

    override fun onDestroy() {
        super.onDestroy()
        AppUtils.destroyImmersionBar(this)
    }
}